<?php
class picture_special_recommend_concept extends system_concept_abstract {
	
	public function __construct($lang) {
		parent::__construct(array('lang' => $lang), array('lang = ?' => $lang));
	}
	
	public function init() {
		$this->setRowClass('picture_special_row');
		$this->setModel('picture_special_recommend_model', 'recommend');
		$this->setJoinModel('picture_special_model', 'special.id = recommend.special_id', 'special');
		$this->setJoinModel('picture_special_locale_model', 'locale.special_id = recommend.special_id', 'locale');
		$this->setModelCols('recommend', array('group_id', 'special_id', 'display_order'));
		$this->setModelCols('special', array('id', 'name', 'cover', 'ptotal'));
		$this->setModelCols('special', array('is_active', 'creationtime', 'lastmodified'));
		$this->setModelCols('locale', array('lang', 'title', 'description'));
	}

}